package com.hm.jiaowuxitong.service;
import com.hm.jiaowuxitong.dao.ICourseDao;
import com.hm.jiaowuxitong.dao.CourseDaoImp;


import java.util.List;
import java.util.Map;
public class CourseServiceImp implements ICourseService {

    ICourseDao dao=new CourseDaoImp();
    @Override
    public int addCourse(Map<String, Object> oMap) {
        return dao.insertCourse(oMap);
    }

    @Override
    public List<Map<String, Object>> getCourses() {
        return dao.selectCourses();
    }
}
